﻿/*****************************************************************//**
 * @file    FITKViewAdaptorConstraintTie.h
 * @brief   Adaptor for 'tie'.
 *  
 * @author  ChengHaotian (yeguangbaozi@foxmail.com)
 * @date    2024-04-19
 *********************************************************************/

#ifndef __FITKVIEWADAPTORCONSTRAINTTIE_H__
#define __FITKVIEWADAPTORCONSTRAINTTIE_H__

#include "FITKVTKViewAdaptorBase.h"

#include "FITKVTKGraphAdaptorAPI.h"

namespace Exchange
{
    /**
     * @brief   Graph object data adaptor for 'tie'.
     * @author  ChengHaotian (yeguangbaozi@foxmail.com)
     * @date    2024-04-11
     */
    class FITKVTKGRAPHADAPTORAPI FITKViewAdaptorConstraintTie : public FITKVTKViewAdaptorBase
    {
        // Regist
        FITKCLASS(Exchange, FITKViewAdaptorConstraintTie);

    public:
        /**
         * @brief   Constructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-04-19
         */
        explicit FITKViewAdaptorConstraintTie() = default;

        /**
         * @brief   Destructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-04-19
         */
        ~FITKViewAdaptorConstraintTie() = default;

        /**
         * @brief   Execute the data exchange.[override]
         * @return  Is OK
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-04-19
         */
        bool update() override;

    };

    // Regist adaptor
    Register2FITKViewAdaptorFactory(Tie, Interface::FITKAbaConstraintTie, FITKViewAdaptorConstraintTie);
}   // namespace Exchange

#endif // __FITKVIEWADAPTORCONSTRAINTTIE_H__
